.ai-summary {
  background-color: rgba(1, 86, 192, 0.40);
  border-radius: 0.2rem;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.8rem;
  
  .ai-summary-header {
    margin-bottom: 0.3rem;
    
    .ai-label {
      font-weight: bold;
      color: #55c5ff;
    }
  }
  
  .ai-summary-content {
    font-size: 0.7rem;
    line-height: 1.5;
    color: #d8d8d8;
    .ai-icon{
      position: relative;
      top: 0.15rem;
      margin-right: 0.15rem;
      display: inline-block;
      width: 1rem;
      height: 1rem;
      background-image: url('../../../../../../../../../public/images/魔棒.png');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: bottom;
    }
  }
  
  // 加载状态样式
  &.loading {
    opacity: 0.85;
    
    .ai-summary-content {
      position: relative;
      animation: pulse 1.5s infinite ease-in-out;
      
      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
        z-index: 1;
      }
    }
  }
  
  // 打字机效果样式
  &.typing {
    .ai-summary-content {
      &::after {
        content: '|';
        display: inline-block;
        margin-left: 2px;
        color: #55c5ff;
        animation: blink 0.7s infinite;
      }
    }
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
} 